package com.rw.coco.api.data.model;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * 群组对象
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class GroupModel {
    /**
     * 群组的ID
     */
    protected String groupId;

    /**
     * 群组房规
     */
    protected Integer diceRule;

    /**
     * 群组是否是黑名单
     */
    protected Boolean blackList;

    /**
     * 群组是否开启
     */
    protected Boolean switchOn;

    /**
     * 群组的旁观开关
     */
    protected Boolean obSwitch;

    /**
     * 获得默认的用户信息
     */
    public static GroupModel getDefault(String groupId) {
        return new GroupModel(groupId, 3, false, true, false);
    }
}
